#define _CRT_SECURE_NO_WARNINGS
#include "Heap.h"

int main()
{
	HP hp;
	HeapInit(&hp);
	Heap_pushBack(&hp, 7);
	Heap_pushBack(&hp, 6);
	Heap_pushBack(&hp, 20);
	Heap_pushBack(&hp, 2);
	Heap_pushBack(&hp, 5);
	Heap_pushBack(&hp, 15);
	Heap_pushBack(&hp, 13);
	Heap_pushBack(&hp, 12);
	Heap_pushBack(&hp, 0);
	Heap_pushBack(&hp, 1);

	int a = HeaptopK(&hp);
	HeapPrint(&hp);

	Heap_popBack(&hp);
	HeapPrint(&hp);

	int b = HeaptopK(&hp);

	printf("%d %d \n", a, b);
	return 0;
}